package wang.chunfan.springcloud.learning.sentinel.server.feign.fallback;

import org.springframework.stereotype.Component;
import wang.chunfan.springcloud.learning.sentinel.server.feign.UserFeign;
import wang.chunfan.springcloud.learning.sentinel.server.model.Result;
import wang.chunfan.springcloud.learning.sentinel.server.model.User;

/**
 * @version 1.0
 * @Author wangchunfan
 * @Date 2020/5/28 10:08
 **/
@Component
public class UserFeignFallback implements UserFeign {
    @Override
    public Result<User> get(Long id) {
        return new Result("，服务降级返回", 500);
    }
}
